package com.jinglu.cloud.common.exception;

import lombok.Getter;

/**
 * @Author zhaotengfei
 * @Datetime 2021/2/10-下午10:13
 */
@Getter
public class BusinessException extends GenericException {

    private static final long serialVersionUID = -1417619719541971304L;

    public BusinessException(String errorMsg) {
        super("500", errorMsg);
    }

    public BusinessException(String errorCode, String errorMsg) {
        super(errorCode, errorMsg);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String errorCode, String message, Throwable cause) {
        super(errorCode, message, cause);
    }
}
